package com.monkey.web.dto.response.user;

import com.monkey.core.domain.user.Sex;
import com.monkey.core.domain.user.User;
import com.monkey.core.domain.user.UserStatus;

import java.util.Date;
import java.util.Set;

/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/31
 */
public class UserInfoDto {
    private String account;
    private String nick;
    private String email;
    private String mobile;
    private UserStatus status;
    private Sex sex;
    private String cardId;
    private Date birthday;
    private String QQ;
    private String address;
    private Set<String> permissions;

    public UserInfoDto(User user, Set<String> permissions) {
        this.account = user.getAccount();
        this.nick = user.getNick();
        this.email = user.getEmail();
        this.mobile = user.getMobile();
        this.status = user.getStatus();
        this.sex = user.getSex();
        this.cardId = user.getCardId();
        this.birthday = user.getBirthday();
        this.QQ = user.getQQ();
        this.address = user.getAddress();
        this.permissions = permissions;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public UserStatus getStatus() {
        return status;
    }

    public void setStatus(UserStatus status) {
        this.status = status;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getQQ() {
        return QQ;
    }

    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<String> permissions) {
        this.permissions = permissions;
    }
}
